package day06;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo1 {
    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        SimpleDateFormat sdf=new SimpleDateFormat();
        Date date=new Date();
        String format=sdf.format(date);
        System.out.println(format);
    SimpleDateFormat sdf2=new SimpleDateFormat("y.MM.dd a hh:mm:ss SSS 时区(z) ");
    String format1=sdf2.format(date);
        System.out.println(format1);


    }
}
